package com.kakarote.ids.provider.entity.BO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;

@ApiModel("获取tokenBO")
public class AuthorizeBO {
    @ApiModelProperty("clientId")
    @NotEmpty(message = "clientId 不能为空")
    private String clientId;

    @ApiModelProperty("重定向地址")
    @NotEmpty(message = "redirectUri 不能为空")
    private String redirectUri;

    @ApiModelProperty("应用授权作用域")
    @NotEmpty(message = "scope 不能为空")
    private String scope;

    @ApiModelProperty("返回类型")
    @NotEmpty(message = "responseType 不能为空")
    private String responseType;

    @ApiModelProperty("用户自定义输入值")
    private String state;

    @ApiModelProperty("授权code")
    private String code;

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public void setResponseType(String responseType) {
        this.responseType = responseType;
    }

    public void setState(String state) {
        this.state = state;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String toString() {
        return "AuthorizeBO(clientId=" + getClientId() + ", redirectUri=" + getRedirectUri() + ", scope=" + getScope() + ", responseType=" + getResponseType() + ", state=" + getState() + ", code=" + getCode() + ")";
    }

    public String getClientId() {
        return this.clientId;
    }

    public String getRedirectUri() {
        return this.redirectUri;
    }

    public String getScope() {
        return this.scope;
    }

    public String getResponseType() {
        return this.responseType;
    }

    public String getState() {
        return this.state;
    }

    public String getCode() {
        return this.code;
    }
}
